
<!--
/**
* Author: zyf
* Date: 2020-07-08 14:49
* Desc: ZmSwitch
*/
-->
<template>
  <el-switch v-bind="$attrs" :active-value="activeValue" :inactive-value="inactiveValue" v-on="$listeners" />
</template>

<script>
export default {
  name: 'ZmSwitch',
  props: {
    activeValue: {
      type: [Number, String],
      default: '1'
    },

    inactiveValue: {
      type: [Number, String],
      default: '0'
    }
  },
  data () {
    return {
    }
  },
  methods: {
    // 初始化方法
    init () { }
  }
}

</script>
<style lang='scss' scoped>
</style>
